<?php
 include_once($_SERVER['DOCUMENT_ROOT'].'/admin/public/header.php');
 $_POST['time']=time();
$res = add($config,'message',$_POST);


if($res){
	echo '<script>alert("添加成功！");window.location.href="/admin/message/index.php"</script>';
}else{
	echo '<script>alert("添加失败！");window.location.href="/admin/message/add.php"</script>';
}

mysql_close();